package com.wishwall.beans.basic;

import javax.ws.rs.core.Response;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import org.codehaus.jackson.annotate.JsonProperty;

@XmlAccessorType(XmlAccessType.PUBLIC_MEMBER)
@XmlType(name = "Error")
@XmlRootElement(name = "error")
public class ErrorBean {

	@JsonProperty
	public static Integer INTERNAL_ERROR = Response.Status.INTERNAL_SERVER_ERROR.getStatusCode();

	@JsonProperty
	private Integer errorCode;

	@JsonProperty
	private String message;

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public void setErrorCode(Integer errorCode) {
		this.errorCode = errorCode;
	}

	public Integer getErrorCode()
	{
		return this.errorCode;
	}

}
